﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing" mc:Ignorable="d" x:Class="Bildschirmpause.MainWindow"
        Title="Bildschirmpause" Height="300" Width="300" Background="{x:Null}" AllowsTransparency="True" WindowStyle="None" BorderThickness="0,0,5,5" Padding="0" Icon="images/clock.png" ResizeMode="NoResize" Loaded="Window_Loaded" Topmost="True">
    <Window.Resources>
        <ImageSource x:Key="BigSmile">images/big_smile.png</ImageSource>
        <ImageSource x:Key="GrimaceSm">images/grimace_sm.png</ImageSource>
        <ImageSource x:Key="Scorn">images/scorn.png</ImageSource>
        <ImageSource x:Key="Unhappy">images/unhappy.png</ImageSource>
        <ImageSource x:Key="Victory">images/victory.png</ImageSource>
        <ImageSource x:Key="What">images/what.png</ImageSource>
        <Style x:Key="BigSmileImageStyle" TargetType="{x:Type Image}">
        	<Setter Property="Source" Value="{StaticResource BigSmile}"/>
        	<Style.Triggers>
        		<Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Source" Value="{StaticResource GrimaceSm}"/>
                </Trigger>
        	</Style.Triggers>
        </Style>
        <Style x:Key="ScornImageStyle" TargetType="{x:Type Image}">
            <Setter Property="Source" Value="{StaticResource Scorn}"/>
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Source" Value="{StaticResource GrimaceSm}"/>
                </Trigger>
            </Style.Triggers>
        </Style>
        <Style x:Key="UnhappyImageStyle" TargetType="{x:Type Image}">
        	<Setter Property="Source" Value="{StaticResource Unhappy}"/>
        	<Style.Triggers>
        		<Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Source" Value="{StaticResource GrimaceSm}"/>
                </Trigger>
        	</Style.Triggers>
        </Style>
        <Style x:Key="VictoryImageStyle" TargetType="{x:Type Image}">
            <Setter Property="Source" Value="{StaticResource Victory}"/>
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Source" Value="{StaticResource GrimaceSm}"/>
                </Trigger>
            </Style.Triggers>
        </Style>
        <Style x:Key="WhatImageStyle" TargetType="{x:Type Image}">
        	<Setter Property="Source" Value="{StaticResource What}"/>
        	<Style.Triggers>
        		<Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Source" Value="{StaticResource GrimaceSm}"/>
                </Trigger>
        	</Style.Triggers>
        </Style>
		<Style x:Key="AoTImageStyle" TargetType="{x:Type Image}">
        	<Setter Property="Source" Value="images/television_alt_on.png"/>
        	<Style.Triggers>
        		<Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Source" Value="images/television_alt_on_inv.png"/>
                </Trigger>
        	</Style.Triggers>
        </Style>
		<Style x:Key="AoTOffImageStyle" TargetType="{x:Type Image}">
        	<Setter Property="Source" Value="images/television_alt.png"/>
        	<Style.Triggers>
        		<Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Source" Value="images/television_alt_inv.png"/>
                </Trigger>
        	</Style.Triggers>
        </Style>
    </Window.Resources>
	<Grid Margin="50,15,30,50">
		<Border BorderBrush="#FFB1B1B1" BorderThickness="3" CornerRadius="30" Background="Black" MouseLeftButtonDown="Border_MouseLeftButtonDown" Margin="0">
			<Border.Effect>
				<DropShadowEffect/>
			</Border.Effect>
			<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="160" Height="160" Margin="0,-15,0,0">
				<Ellipse Margin="0">
					<Ellipse.Fill>
						<RadialGradientBrush>
							<GradientStop Color="#7FFFFFFF" Offset="0"/>
							<GradientStop Color="#3F000000" Offset="1"/>
						</RadialGradientBrush>
					</Ellipse.Fill>
				</Ellipse>
				<ed:Arc x:Name="TimeArc" ArcThickness="1" ArcThicknessUnit="Percent" EndAngle="360" Fill="#FFF4F4F5" Stretch="None" Stroke="#FFB1B1B1" Margin="0" StrokeThickness="5" MouseLeftButtonDown="Border_MouseLeftButtonDown">
					<ed:GeometryEffect.GeometryEffect>
						<ed:SketchGeometryEffect/>
					</ed:GeometryEffect.GeometryEffect>
				</ed:Arc>
			</Grid>
		</Border>			
        <Label x:Name="TimeLabel" Content="- 00:00:00" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0" Foreground="White" FontFamily="Comic Sans MS" FontSize="18.667"/>
		<Image x:Name="EmoticonImage" Height="115" Width="115" Margin="-50,0,0,-55" HorizontalAlignment="Left" VerticalAlignment="Bottom" Style="{DynamicResource BigSmileImageStyle}" MouseLeftButtonDown="Border_MouseLeftButtonDown" />
		<StackPanel HorizontalAlignment="Right" Width="32" Margin="0,-15,-35,0">
			<Image x:Name="PowerImage" MouseLeftButtonDown="CloseImage_MouseLeftButtonDown" Width="32" ToolTip="Bye Bye!" Height="32">
				<Image.Style>
					<Style TargetType="{x:Type Image}">
						<Setter Property="Source" Value="images/power.png"/>
						<Style.Triggers>
							<Trigger Property="IsMouseOver" Value="True">
								<Setter Property="Source" Value="images/power_inv.png"/>
							</Trigger>
						</Style.Triggers>
					</Style>
				</Image.Style>
			</Image>
			<Image x:Name="GoImage" Width="32" ToolTip="Go!" Height="32" Margin="0,5,0,0" MouseLeftButtonDown="GoImage_MouseLeftButtonDown">
				<Image.Style>
					<Style TargetType="{x:Type Image}">
						<Setter Property="Source" Value="images/media_player.png"/>
						<Style.Triggers>
							<Trigger Property="IsMouseOver" Value="True">
								<Setter Property="Source" Value="images/media_player_inv.png"/>
							</Trigger>
						</Style.Triggers>
					</Style>
				</Image.Style>
			</Image>
			<Image x:Name="SettingsImage" Width="32" MouseLeftButtonDown="SettingsImage_MouseLeftButtonDown" ToolTip="Settings..." Height="32" Margin="0,5,0,0">
				<Image.Style>
					<Style TargetType="{x:Type Image}">
						<Setter Property="Source" Value="images/wrench.png"/>
						<Style.Triggers>
							<Trigger Property="IsMouseOver" Value="True">
								<Setter Property="Source" Value="images/wrench_inv.png"/>
							</Trigger>
						</Style.Triggers>
					</Style>
				</Image.Style>
			</Image>
			<Image x:Name="AboutImage" Width="32" MouseLeftButtonDown="AboutImage_MouseLeftButtonDown" ToolTip="About..." Height="32" Margin="0,5,0,0">
				<Image.Style>
					<Style TargetType="{x:Type Image}">
						<Setter Property="Source" Value="images/lightbulb.png"/>
						<Style.Triggers>
							<Trigger Property="IsMouseOver" Value="True">
								<Setter Property="Source" Value="images/lightbulb_inv.png"/>
							</Trigger>
						</Style.Triggers>
					</Style>
				</Image.Style>
			</Image>
			<Image x:Name="AoTImage" Width="32" Style="{DynamicResource AoTImageStyle}" MouseLeftButtonDown="AoTImage_MouseLeftButtonDown" ToolTip="Always on Top" Height="32" Margin="0,5,0,0" />
			<Image x:Name="TopRightImage" Width="32" ToolTip="Snap to top right corner" Height="32" Margin="0,5,0,0" MouseLeftButtonDown="TopRightImage_MouseLeftButtonDown">
				<Image.Style>
					<Style TargetType="{x:Type Image}">
						<Setter Property="Source" Value="images/arrow_5.png"/>
						<Style.Triggers>
							<Trigger Property="IsMouseOver" Value="True">
								<Setter Property="Source" Value="images/arrow_5_inv.png"/>
							</Trigger>
						</Style.Triggers>
					</Style>
				</Image.Style>
			</Image>
		</StackPanel>
	</Grid>
</Window>
